package com.qf.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageVo {

    private Integer currentPage;

    private Integer pageSize;

    public int getBeginIndex(){
        return (currentPage-1)*pageSize;
    }
}
